package cn.wolfcode.trip.base.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString


@ApiModel(value="用户",description="平台注册用户模型")
public class User extends BaseDomain{
    private String email;
    @ApiModelProperty(value="昵称",name="nickName",dataType = "String",required = true)
    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;

    private Integer gender = -1;

    private String coverImgUrl;

    private String sign;

    //用来封装意见或建议
    private String evaluate;

    public String getGenderName(){
        if(gender==1){
            return "男";
        }else if(gender==0){
            return "女";
        }
        return "未知";
    }
}